Interactive Ball Pit

Project Highlights

This interactive Ball Pit project showcases advanced collision detection and resolution between multiple objects using vector mathematics. The canvas dynamically resizes based on screen width for optimal viewing on any device. Balls respond to user interaction through various controls such as speed adjustment, size modification, and color randomization.

The code also demonstrates object-oriented programming by encapsulating ball properties and behavior within a class. Additionally, efficient use of the HTML5 Canvas API ensures smooth animations and accurate rendering.